<template>
	<div>
		<van-nav-bar
		  :title="title"
		  left-text="返回"
		  left-arrow
		  @click-left="$router.back(-1)"
		/>
	</div>
</template>

<script>
	export default {
		name: 'topbar',
		props: {
			title: {
				type: String,
				default: '标题'
			}
		}
	}
</script>

<style scoped>

</style>